// moment 时间格式
export const momentFormat = {
  date: "YYYY-MM-DD",
  dateCN: "YYYY年MM月DD日",
  dateSlant: "YYYY/MM/DD",
  datetime: "YYYY-MM-DD HH:mm",
  dateTimeDetail: "YYYY-MM-DD HH:mm:ss",
  year: "YYYY",
  yearCN: "YYYY年",
  yearMonth: "YYYY-MM",
  yearMonthCN: "YYYY年MM月",
  yearWeek: "YYYY-WW",
  yearWeekCN: "YYYY年-WW周",
  month: "M",
  monthCN: "M月",
  monthDay: "MM-DD",
  monthDayCN: "MM月DD日",
  monthDaySlant: "MM/DD",
  monthDayWeek: "MM-DD ddd",
  monthDayWeekCN: "MMM DD日 dddd",
  day: "DD",
  dayCN: "DD日",
  time: "HH:mm",
  timeCN: "HH时:mm分",
  timeDetail: "HH:mm:ss",
  timeDetailCN: "HH时:mm分:ss秒",
  datetimeLog: "YYYY-MM-DD HH:mm:ss SSS",
  defaultTimeZone: "Asia/Shanghai",
  timestamp: "X",
  timestampDetail: "x",
  dateTimeDetailCN: "YYYY年MM月DD日 HH:mm:ss",
  datetimeMDHM: "MM-DD HH:mm",
  week: "dddd",
};

export const defaultColors = [
  "#465499",
  "#2D69E0",
  "#141A33",
  "#26BF7F",
  "#FAAD14",
  "#EE5443",
  "#F2F7F6",
  "#1A1A1A",
  "#333333",
  "#595959",
  "#666666",
  "#999999",
  "#B3B3B3",
  "#E5E5E5",
  "#F5F5F5",
  "#FAFAFA",
  "#FFFFFF",
];

export const dataBindType = {
  visible: "visible",
  state: "state",
  display: "display",
  event: "event",
};

export const dataTypeCfg = {
  bool: "bool",
  string: "string",
  number: "number",
};

export const eventType = {
  click: "click",
  touchDown: "touchDown",
  touchUp: "touchUp",
  longPressStart: "longPressStart",
  longPressEnd: "longPressEnd",
  change: "change",
  input: "input",
  focus: "focus",
  blur: "blur",
  clear: "clear",
  drag: "drag",
  drop: "drop",
  receive: "receive",
  remove: "remove",
};

export const userRoleCfg = {
  user: 'user',
  guest: 'guest',
  admin: 'admin',
};

export const userRoleMap = {
  user: '用户',
  guest: '访客',
  admin: '管理员',
};
export const directionData=[
  {key: 'right', value: 'to right'},
  {key: 'left', value: 'to left'},
  {key: 'top', value: 'to top'},
  {key: 'bottom', value: 'to bottom'},
  {key: 'topRight', value: 'to top right'},
  {key: 'topLeft', value: 'to top left'},
  {key: 'bottomRight', value: 'to bottom right'},
  {key: 'bottomLeft', value: 'to bottom left'},
]
